﻿using Domain.Entities;
using FluentMigrator;
using FrameworkCore.Extensions;

namespace AiBLSmartEdu.Module.Cust.API.Migrations;

[Migration(202408211730)]
public class CustomerAddAvatarColumn : ForwardOnlyMigration
{
    public override void Up()
    {
        Alter.Table(MigrationExpressions.GetTableName(typeof(Customer)))
            .AddColumn(MigrationExpressions.ColumnNameFor<Customer>(nameof(Customer.Avatar))).AsString(500).Nullable();
    }
}
